<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#import "/common/page.ftl" as p>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${this[0].getText("project_name")}</title>
<link type="text/css" href="${base}/static/css/style.css" rel="stylesheet" rev="stylesheet" />
<link rel="stylesheet" type="text/css" href="${base}/static/js/validate/css/screen.css" />


<script type="text/javascript" src="${base}/static/js/jquery.js"></script>
<script type="text/javascript" src="${base}/static/js/calendar/WdatePicker.js"></script>
<script type="text/javascript" src="${base}/static/js/swfobject2.js"></script>
<script type="text/javascript" src="${base}/static/js/validate/validate.js"></script>
<script type="text/javascript" src="${base}/static/js/validate/cmxforms.js"></script>
</head>
<body>

<div class="main_content"id="div1" style="display:block">

<br/>
<h2>四川省危险废物申报登记汇总表（地区分布）</h2>
<input type="button" id="tt1" value="监控地图" />&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" id="test1" value="固废种类统计" />
<form id="form1" action='#' method='post'>
    <table width="100%" cellspacing="0" class="datalist" style="width:80%">
    	<tr>
			<th>地区</th>
    		<th>废物产生量</th>
    		<th>废物排放量</th>
    		<th>综合利用量</th>
    		<th>废物贮存量</th>
    		<th>废物处置量</th>
    		<th>历年单位贮存量</th>
    		<th>处置往年贮存量</th>
    		<th>操作</th>
    	</tr>
    	<#list statsByCity as stat>
			<tr>
				<td><#if stat?exists>${stat.city.cityName?if_exists}</#if></th>
				<td><#if stat?exists>${stat.productAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.emissionAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.useAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.stockAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.disposeAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.allStockAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.disposePast?if_exists}</#if></th>
				<td><a href="${base}/stat/subCity/${stat.city.id}">市内单位</a></th>
    		</tr>	   	
    	</#list> 
    </table>
</form>
</div>

<div class="main_content" id="div2" style="display:none">

<br/>
<h2>四川省危险废物申报登记汇总表（废物种类）</h2>
<input type="button" id="test2" value="固废地区统计" />&nbsp;&nbsp;&nbsp;&nbsp;
<form id="form2" action='${base}/declaration/add' method='post'>
    <table width="100%" cellspacing="0" class="datalist" style="width:80%">
    	<tr>
			<th>废物编号</th>
    		<th>废物产生量</th>
    		<th>废物排放量</th>
    		<th>综合利用量</th>
    		<th>废物贮存量</th>
    		<th>废物处置量</th>
    		<th>历年单位贮存量</th>
    		<th>处置往年贮存量</th>
    	</tr>
    	<#list statsBygId as stat>
			<tr>
				<td><#if stat?exists>${stat.grabage.code?if_exists}</#if></th>
				<td><#if stat?exists>${stat.productAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.emissionAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.useAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.stockAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.disposeAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.allStockAmount?if_exists}</#if></th>
				<td><#if stat?exists>${stat.disposePast?if_exists}</#if></th>
    		</tr>	   	
    	</#list> 
    	
    </table>
</form>
</div>

<div class="main_content"id="div3" style="display:none">
<br/>
<h2>四川省危险废物监控图</h2>
<input type="button" id="tt2" value="统计表格" />
<br>
<br>
<div id="Craney">FlashHere!</div>
<br/>
</div>
<script type="text/javascript">
		var count = 0;
		function getFlash(m)
		{
	        return "\v"=="v" ? window[m] : document[m];
		}
		function getAllData(){
		   var data = ${jsonData};
		   return data;
		} 
		function sendFlash()
		{
			getFlash("Craney").testCallBack(count++);
		}
		
		var flashvars = {
		};
		var params = {
			"scale"				:		"noscale",
			"allowfullscreen"	:		"true",
			"allowscriptaccess"	:		"always",	
			"allownetworking"	:		"all"
		};
		var attributes = {
		};
		swfobject.embedSWF("${base}/static/flash/SiChuanMap.swf", "Craney", "800", "600", "9.0.115", null, flashvars, params, attributes);
</script>

<script type="text/javascript">


  
$(document).ready(function(){
  $("#test1").click(
  function(){
   $("#div1").toggle();
   $("#div2").toggle();
  }
  );
 });
 
$(document).ready(function(){
  $("#test2").click(
  function(){
   $("#div1").toggle();
   $("#div2").toggle();
  }
  );
 });
 
$(document).ready(function(){
  $("#tt1").click(
  function(){
   $("#div1").toggle();
   $("#div3").toggle();
  }
  );
 });

$(document).ready(function(){
  $("#tt2").click(
  function(){
   $("#div1").toggle();
   $("#div3").toggle();
  }
  );
 });
 

</script>
</body>
</html>
